
export default(url,method = 'GET',data={})=>{
  return new Promise((resolve,reject)=>{
    // console.log(url.url);
      uni.request({
          url:url.url,
          method,
          data,
          success:(res)=>{
              resolve(res.data)
          },
          fail:(err)=>{
              reject(err)
          }
      })
  })
}